﻿@model Childhood.Models.tblFooter
@{
    ViewBag.Title = @Model.C_title;
}
@using PagedList;
@using PagedList.Mvc;
<link href="/Content/PagedList.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(document).ready(function () {
        if ($('.other-list-footer-infor-item').length <= 10)
        {
            $('.otherInforFooterPager').hide();
        }
    });
</script>
<div class="list-footer-infor">
    <div class="list-footer-detail">
        <h3 class="list-footer-detail-title">@Model.C_title</h3>
        <strong class="list-footer-detail-begin">@Model.C_begin</strong>
        <p class="list-footer-detail-content">@Model.C_content</p>
    </div>
    <div class="clear"></div>
    <div class="other-list-footer-infor">
        <h3>Các điều khoản khác</h3>
        <ul class="other-list-footer-infor-item">
        @foreach (var item in ViewBag.onePageOfOtherFooter)
        { 
            <li><a href="/thong-tin/@item.C_url">@item.C_title</a> <em>@item.C_datepost</em></li>
        }
    </ul>
        <!-- output a paging control that lets the user navigation to the previous page, next page, etc -->
    <div class="otherInforFooterPager">
        @Html.PagedListPager((IPagedList)ViewBag.onePageOfOtherFooter, page => Url.Action(MVC.AboutDetail.ActionNames.Index, new { page }),PagedListRenderOptions.Classic)
    </div>
    </div>
</div>
